<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'class-course-category-users-restriction-coupon-form',
	'enableAjaxValidation' => false,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'coupons_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'coupons_id', GxHtml::listDataEx(Coupons::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'coupons_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'category_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'category_id', GxHtml::listDataEx(Category::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'category_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'users_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'users_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'users_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'classes_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'classes_id', GxHtml::listDataEx(Classes::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'classes_id'); ?>
		</div><!-- row -->
                </div>
        
		<div class="row">
		<div class="rowLabel"><?php echo $form->labelEx($model,'courses_id'); ?>
</div>
		<div class="rowControl"><?php echo $form->dropDownList($model, 'courses_id', GxHtml::listDataEx(Courses::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'courses_id'); ?>
		</div><!-- row -->
                </div>
        

        
             
        
             
        
             
        
             
        
             
<div class="row">
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div>
</div>
<!-- form -->
